package com.frejoys.common.vo.admin;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 选择品类返回数据
 */
@Data
public class CategorySelectVo {

    @Schema(type = "Integer", name = "value", description = "品类id", required = true, defaultValue = "1")
    private Integer value;

    @Schema(type = "String", name = "text", description = "品类名称", required = true, defaultValue = "美食")
    private String text;

    @Schema(type = "List<CategorySelectVo>", name = "children", description = "子类", required = true, defaultValue = "")
    private List<CategorySelectVo> children = new ArrayList<>();

}
